package com.hd.appcommon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hd.appcommon.entity.Privilege;

import java.util.List;

/**
 * <p>
 * 权限 服务类
 * </p>
 *
 * @author administrator
 * @since 2020-11-26
 */
public interface IPrivilegeService extends IService<Privilege> {

    List<Privilege> listAllAble();

    List<Privilege> listByRoleId(String roleId);

    List<Privilege> listByParentId(String parentId);

    boolean removeByIdCascade(String privilegeId);

    Privilege getUnique(Privilege privilege);
}
